const mongoose = require('./mongoose')

// 添加购物车
const schema = new mongoose.Schema({
    goodsid:{
        type:String,
        require:true
    },
    userid:{
        type:String,
        require:true
    },
    goodsnumber:{
        type:Number,
        require:true
    }
},{
    versionKey:false
})

const cartmodel = mongoose.model('cart',schema)

// 导出
module.exports = cartmodel